package com.ruoyi.system.habit.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("habit")
public class Habit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    //id 自增长
    //@Excel(name = "id")
    private Integer id;

    //习惯名称
    @Excel(name = "习惯名称")
    private String name;

    //图片url
    @Excel(name = "url")
    private String iconUrl;

    //用户id
    @Excel(name = "用户id")
    private Integer uid;

    //总打卡天数
    @Excel(name = "总打卡天数")
    private Integer totalDays;

    //当前连续天数
    @Excel(name = "当前连续天数")
    private Integer currentContinue;

    //最高连续
    @Excel(name = "最高连续")
    private Integer mostContinue;

    //今天是否已经打卡 1是 0否
    @Excel(name = "今日是否打卡")
    private Integer isClockToday;

    //创建时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

}
